package svc

import (
	"furni-net/api/internal/config"
	"furni-net/furnirpc/furnirpcclient"
	"github.com/zeromicro/go-zero/zrpc"
)

type ServiceContext struct {
	Config   config.Config
	FurniRpc furnirpcclient.Furnirpc
}

func NewServiceContext(c config.Config) *ServiceContext {
	return &ServiceContext{
		Config:   c,
		FurniRpc: furnirpcclient.NewFurnirpc(zrpc.MustNewClient(c.FurniRpc)),
	}
}
